package com.qingfeng.activiti.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.activiti.modeler.NewProcessInstance;
import com.qingfeng.entity.activiti.Assignment;
import com.qingfeng.utils.PageData;
import org.activiti.engine.impl.persistence.entity.ExecutionEntityImpl;
import org.activiti.engine.runtime.ProcessInstance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName AssignmentMapper
 * @author Administrator
 * @version 1.0.0
 * @Description 流程指定人
 * @createTime 2021/8/29 0029 16:57
 */
public interface AssignmentMapper extends BaseMapper<Assignment> {

    /**
     * @title findActivitiAssignment
     * @description 查询流程节点办理人
     * @author Administrator
     * @updateTime 2021/9/5 0005 16:28
     */
    public PageData findActivitiAssignment(PageData pd);

    public void deleteProcessInstance(String  id);

    /**
     * 根据sql获取流程实例列表数据
     * @param offest 当前页
     * @param processInstanceId 流程实例id
     * @param processDefinitionName 流程定义name
     * @param processDefinitionId 流程定义ID
     * @param processDefinitionKey 流程定义Key
     * @return list
     */
    List<NewProcessInstance> getProcessInstanceList(@Param("offest")Integer offest,
                                                     @Param("processInstanceId")String processInstanceId,
                                                     @Param("processDefinitionName")String processDefinitionName,
                                                     @Param("processDefinitionId")String processDefinitionId,
                                                     @Param("processDefinitionKey")String processDefinitionKey);
}
